package a.f.n;

import a.f.zc;

class ab
{
  private k.b_ a;
  private zc b;
  private double c;
  private double d;
  private double e;
  private double f;
  
  ab(k.b_ paramb_, zc paramzc)
  {
    this.a = paramb_;
    this.b = paramzc;
    k.a_ locala_1 = k.a_.a(paramzc.c(), paramzc.d());
    k.a_ locala_2 = locala_1.a(paramb_);
    this.c = locala_2.a(0);
    this.d = locala_2.a(1);
    k.a_ locala_3 = k.a_.a(paramzc.a(), paramzc.b());
    k.a_ locala_4 = locala_3.a(paramb_);
    this.e = locala_4.a(0);
    this.f = locala_4.a(1);
    if (!bool)
    {
      if (this.c < 0.0D)
      {
        this.e += this.c;
        this.c = (-this.c);
      }
      if (bool) {}
    }
    else
    {
      if (this.d >= 0.0D) {
        return;
      }
      this.f += this.d;
    }
    this.d = (-this.d);
  }
  
  k.b_ a()
  {
    return this.a;
  }
  
  zc b()
  {
    return this.b;
  }
  
  public double a(k.a_ parama_)
  {
    boolean bool = k.n;
    if (!bool) {
      if (parama_.equals(k.a_.a)) {
        return f();
      }
    }
    if (!bool) {
      if (parama_.equals(k.a_.c)) {
        return f() + c();
      }
    }
    if (!bool) {
      if (parama_.equals(k.a_.d)) {
        return e();
      }
    }
    if (parama_.equals(k.a_.b)) {
      return e() + d();
    }
    throw new IllegalArgumentException("Invalid direction " + parama_);
  }
  
  public double c()
  {
    return this.d;
  }
  
  public double d()
  {
    return this.c;
  }
  
  public double e()
  {
    return this.e;
  }
  
  public double f()
  {
    return this.f;
  }
  
  public double g()
  {
    return this.e;
  }
  
  public double h()
  {
    return this.f;
  }
  
  public double j()
  {
    return this.e + this.c;
  }
  
  public double k()
  {
    return this.f + this.d;
  }
  
  public double l()
  {
    return this.e + this.c / 2.0D;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.n.ab
 * JD-Core Version:    0.7.0.1
 */